package com.itheima.dao;

import com.itheima.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper //申明一个mapper接口
@Repository //注入到spring容器中
public interface UserDao {
    //查找所有用户
    List<User> findAll();
}
